package tacos.web;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Controller
@RequestMapping("/testhome")
public class LoginController {

    @PostMapping("/success")
    public void success() {
        System.out.println("success");
    }

    @PostMapping("/fail")
    public void fail() {
        System.out.println("fail");
    }

    @GetMapping
    public String login(Model model) {
        return "home";
    }

}
